package cn.geckos.xml
{
	public class XMLDTDParser
	{
		private var _xml:XML;
		private var _definition:IDefinition;
		
		// regular get and set functions
		public function set xml(xml:XML):void
		{this._xml = xml;}
		public function get xml():XML
		{return this._xml;}
		public function set definition(def:IDefinition):void
		{this._definition = def;}
		public function get definition():IDefinition
		{return this._definition;}
		
		public function XMLParser(xml:XML, def:IDefinition)
		{
			this._xml = xml;
			this._definition = def;
		}
		
		public function parse():void
		{
			
		}
		
		protected function checkElement(node:XML):void
		{
			
		}
		
		protected function checkAttribute(node:XML):void
		{
			
		}
	}
}